package com.zhenyi.jiahua.core;

import com.jfinal.config.Routes;
import com.zhenyi.jiahua.index.ApiController;
import com.zhenyi.jiahua.index.SearchController;
import com.zhenyi.jiahua.index.admin.ArrangeController;
import com.zhenyi.jiahua.index.admin.AuthController;
import com.zhenyi.jiahua.index.admin.ChannelController;
import com.zhenyi.jiahua.index.admin.CourseController;
import com.zhenyi.jiahua.index.admin.FollowController;
import com.zhenyi.jiahua.index.admin.MessageController;
import com.zhenyi.jiahua.index.admin.RoleController;
import com.zhenyi.jiahua.index.admin.StaffController;
import com.zhenyi.jiahua.index.admin.StudentController;
import com.zhenyi.jiahua.index.admin.StudentFollowController;
import com.zhenyi.jiahua.index.admin.StudentRecordController;
import com.zhenyi.jiahua.index.admin.StudentVisitController;
import com.zhenyi.jiahua.index.admin.TeachingRecordController;
import com.zhenyi.jiahua.index.admin.VisitController;
import com.zhenyi.jiahua.index.app.HomeController;
import com.zhenyi.jiahua.index.question.QuestionController;

public class JHRoutes extends Routes {

	@Override
	public void config() {
		add("/jh/auth", AuthController.class);
		add("/jh/search", SearchController.class);
		add("/jh/app", HomeController.class);
		add("/jh", AuthController.class);
		add("/jh/admin/auth", AuthController.class);
		add("/jh/admin/arrange", ArrangeController.class);
		add("/jh/admin/course", CourseController.class);
		add("/jh/admin/student", StudentController.class);
		add("/jh/admin/studentFollow", StudentFollowController.class);
		add("/jh/admin/studentRecord", StudentRecordController.class);
		add("/jh/admin/studentVisit", StudentVisitController.class);
		add("/jh/admin/staff", StaffController.class);
		add("/jh/admin/message", MessageController.class);
		add("/jh/admin/channel", ChannelController.class);
		add("/jh/admin/role", RoleController.class);
		add("/jh/question", QuestionController.class);
		add("/jh/admin/visit", VisitController.class);
		add("/jh/admin/follow", FollowController.class);
		add("/jh/api", ApiController.class);
		add("/jh/data/api", com.zhenyi.jiahua.api.ApiController.class);
		add("/jh/admin/teachingRecord", TeachingRecordController.class);
	}

}
